package net.wofly.sale.report.domain;

/**
 * 销售日报
 *
 * @author lign
 * @version 1.0
 * @created 09-4月-2018 22:42:31
 */

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "sale_report_saledailyreport")
@ApiModel(description = "销售日报")
public class SaleDailyReport {
    
    @Id
    private String saleDailyReportID;
    
    /**
     * 新增订单总额
     */
    @ApiModelProperty(value = "新增订单总额")
    private Double amount;
    /**
     * 汇总期间，己完成订单总数
     */
    @ApiModelProperty(value = "己完成订单总数")
    private Integer completeOrderNum;
    /**
     * 汇总日期
     */
    @ApiModelProperty(value = "汇总日期")
    private Long countDate;
    /**
     * 欠款总额
     */
    @ApiModelProperty(value = "欠款总额")
    private Double debt;
    /**
     * 汇总期间，欠款（白条）订单总数
     */
    @ApiModelProperty(value = "欠款（白条）订单总数")
    private Integer debtOrderNum;
    /**
     * 到当前时间为止，欠款（白条）订单总数
     */
    @ApiModelProperty(value = "到当前时间为止，欠款（白条）订单总数")
    private Integer debtOrderTotalNum;
    private Long modifyDate;
    /**
     * 汇总期间新增订单总数
     * <ul>
     * <li>只要订单创建日期是汇总期内</li>
     * </ul>
     */
    @ApiModelProperty(value = "新增订单总数")
    private Integer newOrderNum;
    /**
     * 现金支付总额
     */
    @ApiModelProperty(value = "现金支付总额")
    private Double payCash;
    /**
     * 汇总期间，己完成支付订单总数
     */
    @ApiModelProperty(value = "己完成支付订单总数")
    private Integer payOrderNum;
    /**
     * 应收款
     */
    @ApiModelProperty(value = "应收款")
    private Double receivables;
    
    /**
     * 被汇总业务经理ID
     */
    @ApiModelProperty(value = "被汇总业务经理ID")
    private String userID;
    
    @ApiModelProperty(value = "被汇总业务经理姓名")
    private String userName;
    
    public SaleDailyReport() {
    
    }
    
    @Override
    public void finalize() throws Throwable {
    
    }
}